import http from '../../utils/request'

export async function getExamRecordById(recordId:any ) {
  return http.request({
    url: `/teacher/getExamRecordById/${recordId}`,
    method: 'get',
  })
}
export async function getExamInfoById(examId:any ) {
  return http.request({
    url:`/teacher/getExamInfoById?examId=${examId}`,
    method: 'get',
  })
}
export async function getQuestionById(questionId:any ) {
    return http.request({
      url:`/teacher/getQuestionById/${questionId}`,
      method: 'get',
    })
  }

export async function setObjectQuestionScore(totalScore, recordId) {
    return http.request({
      url:`/teacher/setObjectQuestionScore?totalScore=${totalScore}&examRecordId=${recordId}`,
      method: 'get',
    })
  }
